package com.ruoyi.dailyoperations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dailyoperations.mapper.MeetingAppointmentsMapper;
import com.ruoyi.dailyoperations.domain.MeetingAppointments;
import com.ruoyi.dailyoperations.service.IMeetingAppointmentsService;

/**
 * 会议室预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
@Service
public class MeetingAppointmentsServiceImpl implements IMeetingAppointmentsService 
{
    @Autowired
    private MeetingAppointmentsMapper meetingAppointmentsMapper;

    /**
     * 查询会议室预约
     * 
     * @param id 会议室预约主键
     * @return 会议室预约
     */
    @Override
    public MeetingAppointments selectMeetingAppointmentsById(Long id)
    {
        return meetingAppointmentsMapper.selectMeetingAppointmentsById(id);
    }

    /**
     * 查询会议室预约列表
     * 
     * @param meetingAppointments 会议室预约
     * @return 会议室预约
     */
    @Override
    public List<MeetingAppointments> selectMeetingAppointmentsList(MeetingAppointments meetingAppointments)
    {
        return meetingAppointmentsMapper.selectMeetingAppointmentsList(meetingAppointments);
    }

    /**
     * 新增会议室预约
     * 
     * @param meetingAppointments 会议室预约
     * @return 结果
     */
    @Override
    public int insertMeetingAppointments(MeetingAppointments meetingAppointments)
    {
        return meetingAppointmentsMapper.insertMeetingAppointments(meetingAppointments);
    }

    /**
     * 修改会议室预约
     * 
     * @param meetingAppointments 会议室预约
     * @return 结果
     */
    @Override
    public int updateMeetingAppointments(MeetingAppointments meetingAppointments)
    {
        return meetingAppointmentsMapper.updateMeetingAppointments(meetingAppointments);
    }

    /**
     * 批量删除会议室预约
     * 
     * @param ids 需要删除的会议室预约主键
     * @return 结果
     */
    @Override
    public int deleteMeetingAppointmentsByIds(Long[] ids)
    {
        return meetingAppointmentsMapper.deleteMeetingAppointmentsByIds(ids);
    }

    /**
     * 删除会议室预约信息
     * 
     * @param id 会议室预约主键
     * @return 结果
     */
    @Override
    public int deleteMeetingAppointmentsById(Long id)
    {
        return meetingAppointmentsMapper.deleteMeetingAppointmentsById(id);
    }
}
